home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntkb.zip / NTKB.EXE / Q99 / 2 / 79.TXT < prev   
Text File  |  1993-09-28  |  4KB  |  77 lines

  1. DOCUMENT:Q99279  24-SEP-1993  [W_NT]
  2. TITLE   :MS-DOS-Based Applications and Command Prompts
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. --------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12. --------------------------------------------------------------------
  13.  
  14. Summary:
  15.  
  16. Windows NT provides a fully-integrated command prompt that enables you
  17. to launch both Windows-based and MS-DOS-based applications. Although
  18. the concept of running an MS-DOS-based application in a Windows-based
  19. environment may be familiar to you, Windows NT handles this somewhat
  20. differently than Windows (16-bit) does.
  21.  
  22. The essential difference lies in the command prompt itself; under
  23. Windows NT, the command prompt is a 32-bit Windows NT-based
  24. application, not the virtual MS-DOS machine you would expect from
  25. Windows. Under Windows NT, until you start an MS-DOS-based
  26. application, no virtual MS-DOS machine is created. Furthermore, once
  27. you start an MS-DOS-based application, its virtual MS-DOS machine is
  28. used for all subsequent MS-DOS-based applications started from the
  29. same command prompt.
  30.  
  31. As in Windows, each MS-DOS-based application can have a program
  32. information file (PIF). If there is no PIF for a particular
  33. application, the default PIF, _DEFAULT.PIF, is used. Because Windows
  34. NT only uses the PIF from the first application started in any given
  35. command prompt, you may need to take special care in the way you start
  36. your applications. For example, if you design a PIF that allocates
  37. some EMS memory, it is important that you start the associated
  38. application first; otherwise, the EMS memory may never be allocated.
  39. You may start a Windows NT command prompt and then run the MS-DOS
  40. command, MEM, to see how much memory you have free. Because MEM is
  41. another MS-DOS-based application, Windows NT creates a virtual MS-DOS
  42. machine, probably using _DEFAULT.PIF. After MEM finishes, you start
  43. the application you created the PIF for. Unfortunately, because
  44. _DEFAULT.PIF doesn't instruct Windows NT to allocate EMS memory, your
  45. application reports that it can find no EMS memory. Rechecking the PIF
  46. you created does not solve the problem. You need to start another
  47. command prompt and then make sure to start your EMS-requiring
  48. application first, before you start any other MS-DOS-based
  49. applications.
  50.  
  51. There is one more difference to be aware of: each PIF contains a
  52. pointer to AUTOEXEC and CONFIG files. Usually these default to the
  53. Windows NT versions, AUTOEXEC.NT and CONFIG.NT. If you want to change
  54. environment variables for your MS-DOS-based applications, you need to
  55. point their PIFs to different files or modify the default ones. (To
  56. see these files and their locations, run PIF Editor and choose Windows
  57. NT.)
  58.  
  59. Additional reference words: 3.10 wow
  60. KBCategory:
  61. KBSubCategory: MDOS 
  62.  
  63. =============================================================================
  64.  
  65. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  66. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  67. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  68. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  69. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  70. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  71. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  72. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  73. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  74. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  75. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  76.  
  77. Copyright Microsoft Corporation 1993.